<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<br>
{% for foo in author %}
    姓名: {{ foo.name }}
    <br>
    年龄: {{ foo.age }}
    <br>
    性别: {{ foo.sex }}
    <br>
    {% load static %}
    照片: <img src="/static/img/{{ foo.icon }}" alt="" style="width: 200px">
    <br>
    <a href="{% url 'blogshow' foo.id%}">查看博客</a>
    &nbsp;
    <a href="{% url 'addblog' %}">添加博客</a>
    &nbsp;
    <a href="{% url 'index' %}">返回界面</a>
{% endfor %}

</body>
</html>